// axios 发送ajax请求
import request from '@/utils/request'

export const nativePayService = (productId)=>{
  return request({
      url: '/api/wx-pay/native/' + productId,
      method: 'post'
    })
}
export const cancelService = (orderNo)=>{
  return request({
      url: '/api/wx-pay/cancel/' + orderNo,
      method: 'post'
    })
}
export const refundsPayService = (orderNo,reason)=>{
  return request({
      url: '/api/wx-pay/refunds/' + orderNo + '/' + reason,
      method: 'post'
    })
}
